package com.qianli.user.domain.facatory;

import com.qianli.user.domain.model.UserQuotaModel;
import com.qianli.user.domain.respository.UserQuotaRespsitory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * name:用户额度
 * auth:ting.li@qianli-inc.com
 * date:2018/1/3 20:11
 * version: v1.0.0
 **/
@Service
public class UserQuotaFactory {

    @Autowired
    private UserQuotaRespsitory userQuotaRespsitory;
    /**
     * 加载额度
     * @param model
     */
    public void load(UserQuotaModel model) {
        userQuotaRespsitory.load(model);
    }

    /**
     * 保存额度
     * @param model
     */
    public void store(UserQuotaModel model) {
        userQuotaRespsitory.store(model);
    }
}
